<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: wsx
  Date: 2017/5/13
  Time: 12:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>换货商品详情</title>
    <link rel="stylesheet" href="${Layui}/css/layui.css" media="all">
    <script src="${Layui}/layui.js" charset="utf-8"></script>
    <script src="${jquery}/jquery-3.1.1.js" charset="utf-8"></script>
    <script src="${Js}/admin/changegoods.js" charset="utf-8"></script>
</head>
<body style="margin-left: 2px">
<br>
<form class="layui-form" action="/admin/changestatus?id=${croChangegoods.id}" method="post">
    <div class="layui-form-item" id="goods-group">
        <div class="layui-inline" >
            <table width="100%">
                <td width="50%" align="center" style="text-align: left ">
                    <label class="layui-form-label" >订单编号:</label>
                    <label class="layui-form-label">${croChangegoods.croPurchase.id}</label>
                </td>
                <td width="50%" align="center"  style="text-align: left">
                    <label class="layui-form-label" >换货人:</label>
                    <label class="layui-form-label" >${croChangegoods.croPurchase.croCustomer.username}</label>
                </td>
            </table>
        </div>
        <br>
        <div class="layui-inline" >
            <table width="100%" >
                <td width="50%" align="center"  style="text-align: left">
                    <label class="layui-form-label" >换货商品:</label>
                    <label class="layui-form-label" >${croChangegoods.croPurgoods.goodname}</label>
                </td>
                <td width="50%" align="center"  style="text-align: left">
                    <label class="layui-form-label" >原来商品数量:</label>
                    <label class="layui-form-label" >${croChangegoods.goodsnumber}</label>
                </td>
            </table>
        </div>
        <br>
        <div class="layui-inline" >
            <table width="100%">
                <td width="50%" align="center"  style="text-align: left">
                    <label class="layui-form-label" >换成商品:</label>
                    <label class="layui-form-label" >${croChangegoods.changeCroPurgoods.goodname}</label>
                </td>
                <td width="50%" align="center"  style="text-align: left">
                    <label class="layui-form-label" >换成的商品数量:</label>
                    <label class="layui-form-label" >${croChangegoods.changegoodsnumber}</label>
                </td>
            </table>
        </div>
        <br>
        <div class="layui-inline" >
            <table width="100%">
                <td width="50%" align="center"  style="text-align: left">
                    <label class="layui-form-label" >申请日期:</label>
                    <label class="layui-form-label" >${croChangegoods.applydate}</label>
                </td>
                <td align="center" style="text-align: left">
                    <label class="layui-form-label" >换货的理由:</label>
                    <label class="layui-form-label" >${croChangegoods.changereson}</label>
                </td>
            </table>
        </div>
        <br>

        <div class="layui-inline" align="center"  >
            <c:if test="${croChangegoods.change_status=='0'}">
                <div class="layui-input-block">
                    <select name="yesorno" lay-verify="required" style="height: 30px;">
                        <option value="-1"  selected> 是否同意换货</option>
                        <option value="0"  >同意</option>
                        <option value="1"  >不同意</option>
                    </select>
                </div>
                <br>
                <div class="layui-inline" align="center">
                    <button style="color:#009688;width: 70px;height: 30px" class="layui-btn layui-btn-normal" lay-submit lay-filter="formDemo">提交</button>
                </div>
            </c:if>
        </div>
        <div class="layui-inline" align="center"  >
            <c:if test="${croChangegoods.change_status=='1'}">
                <label class="layui-form-label" style="color: #F7B824">不同意换货</label>
            </c:if>
        </div>
        <div class="layui-inline" align="center"  >
            <c:if test="${croChangegoods.change_status=='2'}">
                <label class="layui-form-label" style="color: #F7B824" >同意换货</label>
            </c:if>
        </div>

    </div>
</form>
</body>
</html>
